#region Copyright RenGuiYou. All rights reserved.
//=====================================================
// NeatlyFrameWork
// Author:      RenGuiyou
// Feedback: 	mailto:750539605@qq.com
//=====================================================
#endregion

using System.Collections.Generic;
using UnityEngine;

namespace Neatly.Load.Pool
{
    public class SoundPool : IPoolBase<AudioClip>
    {
        private readonly Dictionary<string, AudioClip> m_AllSounds = new Dictionary<string, AudioClip>();

        public void Add(string name, AudioClip clip)
        {
            m_AllSounds.Add(name, clip);
        }

        public AudioClip Get(string key)
        {
            m_AllSounds.TryGetValue(key, out var result);
            return result;
        }

        public void Update() { }
        public void Remove(string key) { }
    }
}
